import wtforms

from validators import BaseForm, BasePageForm


class UserRoleForm(BaseForm):
    """
    r_用户角色关系表单校验类
    """
    id = wtforms.IntegerField()
    userId = wtforms.StringField("用户ID", [wtforms.validators.DataRequired(message="用户ID不能为空")])
    roleId = wtforms.StringField("角色ID", [wtforms.validators.DataRequired(message="角色ID不能为空")])


class UserRolePageForm(BasePageForm):
    """
    r_用户角色关系分页校验类
    """
    pass
